package com.itheima.leyou.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@TableName("tb_category_brand")
@AllArgsConstructor(staticName = "of")//全参构造
public class CategoryBrand {
    @TableId(type = IdType.INPUT)//主键采用自己的方式，不是主键自增的方式
    private Long categoryId;
    @TableId(type = IdType.INPUT)
    private Long brandId;
}
